/*
 * @Author: chyang0822 270917365@qq.com
 * @Date: 2024-12-27 15:27:32
 * @LastEditors: chyang0822 270917365@qq.com
 * @LastEditTime: 2024-12-27 19:58:36
 * @FilePath: /Project-DMAI-Deploy/tutorials/npp/ch1_get_started/src/main.cpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置:
 * https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <npp.h>
#include <stdio.h>

void case_01() {
    const int num_types = 2 * sizeof(Npp32f);
    NppiSize roi = {2, 1};
    Npp32f *input1_device = (Npp32f *)nppsMalloc_32f(num_types);
    Npp32f *input2_device = (Npp32f *)nppsMalloc_32f(num_types);
    Npp32f *output_device = (Npp32f *)nppsMalloc_32f(num_types);
    nppiAdd_32f_C1R(input1_device, 1, input2_device, 1, output_device, 1, roi);
}

int main(void) {
    case_01();

    return 0;
}